<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title" id="TicketMessageModalLabel">新增处理记录</h4>
</div>
<div class="modal-body">
    <form id="input_form" class="form-inline" action="/business/add_ticket_message/{{ ticket_id }}" method="post">
        {% csrf_token %}
        <div class="row">
              <div class="col-md-8 form-group">
                  <label for="message"><span style="color: red;font-weight:bold">*</span>故障处理信息记录(限1000字)：</label>
                  <textarea id="message" class="form-control" name="message" rows="12" cols="60" placeholder="故障处理信息记录 (必填)"></textarea>
              </div>
        </div>
        <br>
        <button type="reset" class="btn btn-primary">清空内容</button>
        <button id="submit_button" type="submit" class="btn btn-primary">提交</button>
    </form>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal"><strong>关闭</strong></button>
</div>

<script>
$(document).ready($("#submit_button").click(function () {

    $('#input_form input,textarea').each(function () {
        $(this).val($.trim($(this).val()));
    });

}));
</script>